package com.example.ceshi.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.example.ceshi.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author Administrator
* @description 针对表【user(会员表)】的数据库操作Mapper
* @createDate 2022-10-30 09:16:23
* @Entity com.example.ceshi.entity.User
*/
public interface UserMapper extends BaseMapper<User> {
    int insertSelective(User user);//mabitsX 自动生成curd alt+enter

    int deleteByIdAndMobile(@Param("id") Object id, @Param("mobile") String mobile);

    int updateAgeAndMobileByAge(@Param("age") Integer age, @Param("mobile") String mobile, @Param("oldAge") Integer oldAge);

    List<User> selectAllOrderByAgeDesc();

    int deleteById(@Param("id") Integer id);

    List<User> selectAllById();



}




